package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.TaskTest;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 试验内容 Service接口
 *
 * @author ganjun
 * @date 2024-11-18 11:13:09
 */
public interface ITaskTestService extends IService<TaskTest> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-18 11:13:09
     * @param request QueryRequest
     * @param taskTest taskTest
     * @return IPage<TaskTest>
     */
    IPage<TaskTest> findTaskTestPage(QueryRequest request, TaskTest taskTest);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-18 11:13:09
     * @param taskTest taskTest
     * @return List<TaskTest>
     */
    List<TaskTest> findTaskTestList(TaskTest taskTest);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-18 11:13:09
    * @param id
    * @return TaskTest
    */
    TaskTest findTaskTestById(String id);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-18 11:13:09
     * @param taskTest taskTest
     */
    boolean createTaskTest(TaskTest taskTest);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-18 11:13:09
     * @param taskTest taskTest
     */
    boolean updateTaskTest(TaskTest taskTest);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-18 11:13:09
     * @param taskTest taskTest
     * @param taskTestIds taskTestIds
     */
    boolean deleteTaskTest(TaskTest taskTest,String taskTestIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-18 11:13:09
    * @param taskTestIds taskTestIds
    */
    boolean physicallyDeleteTaskTest(String taskTestIds);
    boolean physicallyDeleteByTaskcode(String  taskcode);
}
